#pragma once
#include "BaseInclude.h"
typedef bool (*NetMsgProc)(const void*,int,bool);

class CNetProcessMgr
{
public:
	CNetProcessMgr(void);
	~CNetProcessMgr(void);	

	void RegisterProc(int iMsgID,NetMsgProc pFunc);
	bool FireProc(int iMsgID,const void* pkData,int iLen,bool bFixedMsg);

protected:
	bool UnRegisterMsgProc(int iMsgID);

private:
	std::map<int,NetMsgProc> m_apkNetMsgProc;
};
